﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B303Langf.Parser.AST
{
   public class VoidTypeDenoter : TypeDenoter
   {
      public VoidTypeDenoter()
      {

      }

      public override object Visit( IVisitor v, object obj )
      {
         return v.VisitVoidTypeDenoter( this, obj );
      }

      public override ArrayIndexer ArrayIndexer
      {
         get
         {
            return null;
         }
      }

      public override TypeDenoter WithoutArray()
      {
         return new VoidTypeDenoter();
      }

      public override bool IsArray
      {
         get
         {
            return false;
         }
      }
   }
}
